﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DashMaster.master" AutoEventWireup="true"
    CodeFile="viewprojects.aspx.cs" Inherits="view_projects" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style>
        .Background
        {
            background-color: Gray;
            filter: alpha(opacity='0');
            opacity: 0.7;
            padding: 10px;
            border: 3px solid #dedede;
        }
        .Panel
        {
            background: url(images/login-box-backg.png);
            width: 455px;
            height: 410px;
        }
        .style9
        {
            text-align: center;
        }
    </style>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
        <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" PopupControlID="Panel1"
            TargetControlID="HyperLink1" BackgroundCssClass="Background" CancelControlID="btnCancel">
        </asp:ModalPopupExtender>
        <asp:Panel ID="Panel1" runat="server" CssClass="Panel">
            <table style="width: 100%; margin-top: 40px;">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp; Project
                        <asp:DropDownList ID="DDL1" runat="server" DataSourceID="SelectProject" DataTextField="project_name"
                            DataValueField="project_id" AutoPostBack="True" OnSelectedIndexChanged="DDL1_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:SqlDataSource ID="SelectProject" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
                            SelectCommand="SELECT [project_name], [project_id] FROM [Project_Master]"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td class="style9">
                        <p>
                            &nbsp;
                        </p>
                    </td>
                    <td class="style9">
                        <p>
                            Project ID&nbsp;
                        </p>
                    </td>
                    <td>
                        <asp:TextBox ID="txtProjectID" runat="server"></asp:TextBox>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style9">
                        <p>
                            &nbsp;
                        </p>
                    </td>
                    <td class="style9">
                        <p>
                            Project Description
                        </p>
                    </td>
                    <td>
                        <asp:TextBox ID="txtProjectDesc" runat="server" TextMode="MultiLine"></asp:TextBox>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style9">
                        <p>
                            &nbsp;
                        </p>
                    </td>
                    <td class="style9">
                        <p>
                            Start Date
                        </p>
                    </td>
                    <td>
                        <asp:TextBox ID="txtStartDate" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style9">
                        <p>
                            &nbsp;
                        </p>
                    </td>
                    <td class="style9">
                        <p>
                            End Date
                        </p>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEndDate" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Update Project" />
                        <asp:Button ID="btnCancel" runat="server" Text="Close" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <table width="100%" align="center" cellpadding="2" cellspacing="2" border="0">
        <tr>
            <td style="width: 25%">
                <a href="ManageProject.aspx">
                    <img src="images/file_add.png" alt="Add" height="14px" width="16px" />
                    New Project</a>
            </td>
            <td style="width: 25%">
                <a href="module.aspx">
                    <img src="images/file_add.png" alt="Add" height="14px" width="16px" />
                    Add Module</a>
            </td>
            <td style="width: 50%">
                <a href="editissue.aspx" style="display: block; text-align: right;" id="HyperLink1"
                    runat="server">Click Project to Edit</a>
                <%-- <label style="display:block; text-align:right;">Click Project to Edit</label>--%>
            </td>
        </tr>
    </table>
    <br />
    <table width="100%" align="center" cellpadding="2" cellspacing="2" border="0">
        <tr align="left" style="background-color: #004080; color: White;">
            <td width="30%">
                Project Name
            </td>
            <td>
                Description
            </td>
        </tr>
        <%--Need the while output into here bgcolor="#EAEAEA" --%>
        <%=getWhileLoopData()%>
    </table>
</asp:Content>
